package com.geeksaga.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.SagaFile;

/**
 * @author newbie
 * @since 0.1
 */
public interface FileDao {
    
	/**
	 * @param file
	 * @return
	 * @throws DataAccessException
	 */
	public SagaFile add(SagaFile file) throws DataAccessException;
	
	/**
	 * @param file
	 * @return
	 * @throws DataAccessException
	 */
	public List<SagaFile> find(SagaFile file) throws DataAccessException;
	
	/**
	 * @param sid
	 * @return
	 * @throws DataAccessException
	 */
	public SagaFile findBySid(String sid) throws DataAccessException;
}